<?php
$sanitize_all_escapes = true;
$fake_register_globals = false;
session_start();

$ignoreAuth = true;
require_once('../interface/globals.php');

require_once("$srcdir/sql.inc");
require_once("$srcdir/formdata.inc.php");

$patient_general_data = $_REQUEST["patient_general_data"] ? 1 : 0;
$details_auth_by_patient = $_REQUEST["details_auth_by_patient"] ? 1 : 0;

sqlStatement("UPDATE patient_data SET patient_general_data=$patient_general_data, details_auth_by_patient=$details_auth_by_patient WHERE id = {$_REQUEST["pid"]}");
?>